package com.git.hui.yinshua.api.model.order;

import lombok.Getter;

/**
 * 订单状态
 *
 * @author YiHui
 * @date 2024/6/20
 */
@Getter
public enum RefundStatusEnum {
    TO_REFUND(0, "未退款"),
    // 用于前端告诉后端已经支付成功了，但是后台还没有收到微信回调的场景
    REFUNDING(20, "退款中"),
    SUCCEED(30, "退款成功"),
    CLOSE(40, "退款关闭"),
    FAILED(100, "退款失败")
    ;

    private Integer status;
    private String desc;

    RefundStatusEnum(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }
}
